

// 点样式展开按钮
function openPopupBtn2() {
    console.log(100);
    const popupDiv = document.getElementById("icon_point");
    if (popupDiv) {
        popupDiv.style.display = "block";
    }
}

function openPopupBtn4() {
    console.log(101);
    const popupDiv = document.getElementById("icon_point2");
    if (popupDiv) {
        popupDiv.style.display = "block";
    }
}


// var flag = 1
// function openPopupBtn2() {
//     if (flag) {
//         console.log(666);
//         const icon = document.createElement('div');
//         document.getElementById("popup").style.display = "block";
//         flag = 0;
//     } else {
//         document.getElementById("popup").style.display = "none";
//         flag = 1;
//     }
// }


// 面样式展开按钮
function openPopupBtnNew() {
    console.log(300);
    const popupDiv = document.getElementById("filling_area");
    if (popupDiv) {
        popupDiv.style.display = "block";
    }
}

function openPopupBtn3() {
    console.log(301);
    const popupDiv = document.getElementById("filling_area2");
    if (popupDiv) {
        popupDiv.style.display = "block";
    }
}



// function openPopupBtnNew() {
//     if (flag) {
//         console.log(777);
//         document.getElementById("popup2").style.display = "block";
//         flag = 0;
//     } else {
//         document.getElementById("popup2").style.display = "none";
//         flag = 1;
//     }
// }






// 点修改样式  关闭 按钮
function modifyStyle_point() {
    var table = document.getElementById("styleTable_point");
    table.style.display = "block";
}
function closeStyleTable_point() {
    var table = document.getElementById("styleTable_point");
    table.style.display = "none";
}

function modifyStyle_point2() {
    var table = document.getElementById("styleTable_point2");
    table.style.display = "block";
}
function closeStyleTable_point2() {
    var table = document.getElementById("styleTable_point2");
    table.style.display = "none";
}


// 线 修改样式  关闭 按钮
function modifyStyle_line() {
    var table = document.getElementById("styleTable_line");
    table.style.display = "block";
}

function closeStyleTable_line() {
    var table = document.getElementById("styleTable_line");
    table.style.display = "none";
}

function modifyStyle_line2() {
    var table = document.getElementById("styleTable_line2");
    table.style.display = "block";
}
function closeStyleTable_line2() {
    var table = document.getElementById("styleTable_line2");
    table.style.display = "none";
}

// 面 修改样式  关闭 按钮
function modifyStyle_area() {
    var table = document.getElementById("styleTable_area");
    table.style.display = "block";
}

function closeStyleTable_area() {
    var table = document.getElementById("styleTable_area");
    table.style.display = "none";
}

function modifyStyle_area2() {
    var table = document.getElementById("styleTable_area2");
    table.style.display = "block";
}
function closeStyleTable_area2() {
    var table = document.getElementById("styleTable_area2");
    table.style.display = "none";
}


//  点样式右上×按钮（关闭图标选择框）
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_dian1');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('icon_point');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_dian2');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('icon_point2');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

// 点样式右上×按钮（关闭整个div框）
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_dian3');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('dianxxxx');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_dian4');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('dianxxxx1');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

// 线样式右上×按钮（关闭整个div框）
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_xian3');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('xianxxxx');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_xian4');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('xianxxxx1');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});


//  面样式右上×按钮
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_mian1');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('filling_area');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_mian2');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('filling_area2');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

// 面样式右上×按钮（关闭整个div框）
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_mian3');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('mianxxxx');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_mian4');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('mianxxxx1');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

// 剖面分析 三维坐标右上 ×按钮
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_poumianfenxi');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('echartsView1');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_sanweimoxing');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var popupDiv = document.getElementById('moxing');
            if (popupDiv) {
                popupDiv.style.display = 'none';
            }
        });
    }
});

// 空间量测标题栏右上角 ×按钮 关闭整个标题栏,同时显示左侧展开按钮
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('close_liangce111');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var closeNav = document.getElementById('liangce111');
            if (closeNav) {
                closeNav.style.display = 'none';
            }
            var opeanButton = document.getElementById('open_liangce111');
            if (opeanButton) {
                opeanButton.style.display = 'block';
            }
        });
    }
});


// 空间量测标题栏左侧 展开按钮 显示整个标题栏，同时隐藏此按钮
document.addEventListener('DOMContentLoaded', function () {
    var closeButton = document.getElementById('open_liangce111');
    if (closeButton) {
        closeButton.addEventListener('click', function () {
            var opeanNav = document.getElementById('liangce111');
            if (opeanNav) {
                opeanNav.style.display = 'block';
            }
            var closeButton = document.getElementById('open_liangce111');
            if (closeButton) {
                closeButton.style.display = 'none';
            }
        });
    }
});